package com.project.webservice.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.util.JSONUtils;
import com.project.webservice.entity.JgGjxl;
import com.project.webservice.entity.JkXlxxMid;
import com.project.webservice.mapper.JkXlxxMidMapper;
import com.project.webservice.service.JkXlxxMidService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
@DS("master")
public class JkXlxxMidServiceImpl extends ServiceImpl<JkXlxxMidMapper, JkXlxxMid> implements JkXlxxMidService {

    /**
     * 分页
     * @param page
     * @param jkXlxxMid
     * @return
     */
    public IPage searchByPage(Page page, JkXlxxMid jkXlxxMid){
        log.info("searchByPage:{}", JSONUtils.writeExcludeNull(jkXlxxMid));
        return baseMapper.selectPage(page, Wrappers.<JkXlxxMid>lambdaQuery());
    }
}
